package com_djm_2025_06_03.interfacedemo2;

public class Test {
    public static void main(String[] args) {
        PingPongPlayer pingPongPlayer = new PingPongPlayer("张继科",31);
        PingPongCoach pingPongCoach = new PingPongCoach("刘国梁",50);

        System.out.println("___________________________________________________________");

        System.out.println(pingPongPlayer.toString());
        System.out.println(pingPongCoach.toString());


        System.out.println("___________________________________________________________");

        pingPongPlayer.study();
        pingPongPlayer.speakEnglish();
        pingPongCoach.teach();
        pingPongCoach.speakEnglish();

        System.out.println("___________________________________________________________");

        BasketBallPlayer basketBallPlayer = new BasketBallPlayer("姚明",28);
        BasketBallCoach basketBallCoach = new BasketBallCoach("王治郅",36);



        System.out.println(basketBallCoach.toString());
        System.out.println(basketBallPlayer.toString());


        System.out.println("___________________________________________________________");

        basketBallPlayer.study();
        basketBallCoach.teach();
    }
}

